{include file="public/header" /}
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.fuwu_personal}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <input class="txt" name="id" id="id" value="{$id}" type="hidden">
                <dt>根据省份筛选</dt>
                <dd><input class="txt" name="search_provice" id="search_provice" value="{$search_provice}" type="text"></dd>
                <dt>根据城市筛选</dt>
                <dd><input class="txt" name="search_city" id="search_city" value="{$search_city}" type="text"></dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                {if $search_provice!='' || $search_city!=''}
                <a class="btn" href="{:url('Fuaddress/index',['id'=>$id])}" title="{$Think.lang.ds_cancel_search}"><span>{$Think.lang.ds_cancel_search}</span></a>
                {/if}
                <!--<a class="btn btn-default" href="javascript:export_xls('{:url('Brand/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>-->
            </div>
        </div>
    </form>
    <table class="ds-default-table">
            <thead>
            <tr class="thead">
                <th class="w24"></th>
                <th>省份</th>
                <th>城市</th>
                <th class="w150">区域</th>
                <th class="w150">状态</th>
                <th class="w150">{$Think.lang.fuwu_personal_createdtime}</th>
                <th class="w150">{$Think.lang.fuwu_personal_updatedtime}</th>
                <th class="w120 align-center">{$Think.lang.ds_handle}</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="$data"}
            {foreach name="data" item="v"}
            <tr class="hover edit" id="ds_row_{$v.id}">
                <td><input value="{$v.id}" class="checkitem" type="checkbox" name="del_brand_id[]"></td>
                <td class="name">{$v.area_name1}</td>
                <td class="name">{$v.area_name2}</td>
                <td class="name">{$v.areastr}</td>
                <td>
                {if $v.status == '0'}
                <a href="JavaScript:dsLayerConfirm('{:url('Fuaddress/edit_status',['column'=>'status','value'=>1,'id'=>$v.id])}','{$Think.lang.ds_ensure_edit_status}',{$v.id});"><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_error.png"  width="22px"></a>
                <!--<a href="JavaScript:dsLayerConfirm('{:url('Fuaddress/edit_status',['column'=>'status','value'=>1,'id'=>$v.id])}','{$Think.lang.ds_ensure_edit_status}',{$v.id});"><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_error.png"  width="22px"></a>-->
                {else /}
                <a href="JavaScript:dsLayerConfirm('{:url('Fuaddress/edit_status',['column'=>'status','value'=>0,'id'=>$v.id])}','{$Think.lang.ds_ensure_edit_status}',{$v.id});"><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_success.png"></a>
                {/if}</td>
                <td class="name">{$v.created_at}</td>
                <td class="name">{$v.updated_at}</td>
                <td class="align-center">
                    <!--<a href="{:url('Fuaddress/address_edit',['id'=>$v.id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>-->
                    <a href="javascript:dsLayerConfirm('{:url('Fupersonal/address_del',['id'=>$v.id])}','{$Think.lang.ds_ensure_del}',{$v.id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                </td>
            </tr>
           {/foreach}
           {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
                {notempty name="data"}
                <tr colspan="15" class="tfoot">
                    <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
                    <td colspan="16">
                        <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
                        &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
                    </td>
                </tr>
                {/notempty}
            </tfoot>
        </table>
    {$showpage}
    <div class="clear"></div>
</div>
<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script type="text/javascript">
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Fupersonal/address_del.html?id=" + ids_str;
        dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
    }
</script>
